package com.java.mapper;

import java.util.List;

import com.java.entity.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    List<User> selectAll();
    
    List<User> selectByCondition(User record);

	/**
	 * @param user
	 * @return
	 */
	User selectByUser(User user);
}